package com.bootdo.lvyou_specialty.dao;

import com.bootdo.lvyou_specialty.domain.LvyouSpecialtyGzhConfig;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-11-02 11:49:51
 */
@Mapper
public interface LvyouSpecialtyGzhConfigDao {

	LvyouSpecialtyGzhConfig get(Long id);
	
	List<LvyouSpecialtyGzhConfig> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(LvyouSpecialtyGzhConfig lvyouSpecialtyGzhConfig);
	
	int update(LvyouSpecialtyGzhConfig lvyouSpecialtyGzhConfig);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	@Select("select * from me_lvyou_specialty_gzh_config where is_default = 2")
	LvyouSpecialtyGzhConfig getDefault();
}
